package br.com.cast.scc.pages;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.Link;

import br.com.cast.scc.model.Veiculo;
import br.com.cast.scc.pages.veiculo.CadastrarVeiculoIndexPage;
import br.com.cast.scc.pages.veiculo.ConsultaVeiculoIndexPage;

public class BasePage extends WebPage {
	private static final long serialVersionUID = 1L;

	public BasePage() {
		
		add(new Link<Veiculo>("cadastroTerrestre") {

			private static final long serialVersionUID = 1L;

			@Override
			public void onClick() {
				
				setResponsePage(CadastrarVeiculoIndexPage.class);
			}
		});

		add(new Link<Veiculo>("consultaVeiculos") {
			
			private static final long serialVersionUID = 1L;
			
			@Override
			public void onClick() {
				
				setResponsePage(ConsultaVeiculoIndexPage.class);
			}
		});

    }
}
